home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / misc / gs261src.zip / main.h < prev    next >
C/C++ Source or Header  |  1993-05-13  |  2KB  |  47 lines

  1. /* Copyright (C) 1992 Aladdin Enterprises.  All rights reserved.
  2.  
  3. This file is part of Ghostscript.
  4.  
  5. Ghostscript is distributed in the hope that it will be useful, but
  6. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. to anyone for the consequences of using it or for whether it serves any
  8. particular purpose or works at all, unless he says so in writing.  Refer
  9. to the Ghostscript General Public License for full details.
  10.  
  11. Everyone is granted permission to copy, modify and redistribute
  12. Ghostscript, but only under the conditions described in the Ghostscript
  13. General Public License.  A copy of this license is supposed to have been
  14. given to you along with Ghostscript so you can know your rights and
  15. responsibilities.  It should be in a file named COPYING.  Among other
  16. things, the copyright notice and this notice must be preserved on all
  17. copies.  */
  18.  
  19. /* main.h */
  20. /* Interface between gs.c and gsmain.c */
  21.  
  22. /* Exported data from gsmain.c */
  23. extern char *gs_lib_env_path;
  24. extern uint gs_memory_chunk_size;
  25. extern int gs_user_errors;
  26.  
  27. /* Exported procedures from gsmain.c */
  28. extern    void    gs_init0(P4(FILE *, FILE *, FILE *, int)),
  29.         gs_init1(P0()),
  30.         gs_init2(P0());
  31. extern    void    gs_add_lib_path(P1(const char *));
  32. extern    void    gs_set_lib_paths(P0());
  33. extern    int    gs_lib_open(P2(const char *fname, ref *pfile));
  34. /* The value returned by gs_run_file and gs_run_string is */
  35. /* 0 if the interpreter ran to completion, e_Quit for a normal quit, */
  36. /* e_Fatal for a non-zero quit or a fatal error. */
  37. /* e_Fatal stores the exit code in the third argument. */
  38. extern    int    gs_run_file(P4(const char *fname, int user_errors, int *pexit_code, ref *perror_object)),
  39.         gs_run_string(P4(const char *str, int user_errors, int *pexit_code, ref *perror_object));
  40. extern    void    gs_debug_dump_stack(P2(int code, ref *perror_object));
  41. extern    void    gs_finit(P2(int exit_status, int code)),
  42.         gs_exit(P1(int exit_status)),
  43.         gs_exit_with_code(P2(int exit_status, int code));
  44. /* Direct interface to the interpreter. */
  45. /* Clients do not normally use this. */
  46. extern    int    gs_interpret(P4(ref *pref, int user_errors, int *pexit_code, ref *perror_object));
  47.